package com.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PlainmodelExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public PlainmodelExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPmidIsNull() {
            addCriterion("PMID is null");
            return (Criteria) this;
        }

        public Criteria andPmidIsNotNull() {
            addCriterion("PMID is not null");
            return (Criteria) this;
        }

        public Criteria andPmidEqualTo(Integer value) {
            addCriterion("PMID =", value, "pmid");
            return (Criteria) this;
        }

        public Criteria andPmidNotEqualTo(Integer value) {
            addCriterion("PMID <>", value, "pmid");
            return (Criteria) this;
        }

        public Criteria andPmidGreaterThan(Integer value) {
            addCriterion("PMID >", value, "pmid");
            return (Criteria) this;
        }

        public Criteria andPmidGreaterThanOrEqualTo(Integer value) {
            addCriterion("PMID >=", value, "pmid");
            return (Criteria) this;
        }

        public Criteria andPmidLessThan(Integer value) {
            addCriterion("PMID <", value, "pmid");
            return (Criteria) this;
        }

        public Criteria andPmidLessThanOrEqualTo(Integer value) {
            addCriterion("PMID <=", value, "pmid");
            return (Criteria) this;
        }

        public Criteria andPmidIn(List<Integer> values) {
            addCriterion("PMID in", values, "pmid");
            return (Criteria) this;
        }

        public Criteria andPmidNotIn(List<Integer> values) {
            addCriterion("PMID not in", values, "pmid");
            return (Criteria) this;
        }

        public Criteria andPmidBetween(Integer value1, Integer value2) {
            addCriterion("PMID between", value1, value2, "pmid");
            return (Criteria) this;
        }

        public Criteria andPmidNotBetween(Integer value1, Integer value2) {
            addCriterion("PMID not between", value1, value2, "pmid");
            return (Criteria) this;
        }

        public Criteria andTaidIsNull() {
            addCriterion("TAID is null");
            return (Criteria) this;
        }

        public Criteria andTaidIsNotNull() {
            addCriterion("TAID is not null");
            return (Criteria) this;
        }

        public Criteria andTaidEqualTo(Integer value) {
            addCriterion("TAID =", value, "taid");
            return (Criteria) this;
        }

        public Criteria andTaidNotEqualTo(Integer value) {
            addCriterion("TAID <>", value, "taid");
            return (Criteria) this;
        }

        public Criteria andTaidGreaterThan(Integer value) {
            addCriterion("TAID >", value, "taid");
            return (Criteria) this;
        }

        public Criteria andTaidGreaterThanOrEqualTo(Integer value) {
            addCriterion("TAID >=", value, "taid");
            return (Criteria) this;
        }

        public Criteria andTaidLessThan(Integer value) {
            addCriterion("TAID <", value, "taid");
            return (Criteria) this;
        }

        public Criteria andTaidLessThanOrEqualTo(Integer value) {
            addCriterion("TAID <=", value, "taid");
            return (Criteria) this;
        }

        public Criteria andTaidIn(List<Integer> values) {
            addCriterion("TAID in", values, "taid");
            return (Criteria) this;
        }

        public Criteria andTaidNotIn(List<Integer> values) {
            addCriterion("TAID not in", values, "taid");
            return (Criteria) this;
        }

        public Criteria andTaidBetween(Integer value1, Integer value2) {
            addCriterion("TAID between", value1, value2, "taid");
            return (Criteria) this;
        }

        public Criteria andTaidNotBetween(Integer value1, Integer value2) {
            addCriterion("TAID not between", value1, value2, "taid");
            return (Criteria) this;
        }

        public Criteria andPridIsNull() {
            addCriterion("PRID is null");
            return (Criteria) this;
        }

        public Criteria andPridIsNotNull() {
            addCriterion("PRID is not null");
            return (Criteria) this;
        }

        public Criteria andPridEqualTo(Integer value) {
            addCriterion("PRID =", value, "prid");
            return (Criteria) this;
        }

        public Criteria andPridNotEqualTo(Integer value) {
            addCriterion("PRID <>", value, "prid");
            return (Criteria) this;
        }

        public Criteria andPridGreaterThan(Integer value) {
            addCriterion("PRID >", value, "prid");
            return (Criteria) this;
        }

        public Criteria andPridGreaterThanOrEqualTo(Integer value) {
            addCriterion("PRID >=", value, "prid");
            return (Criteria) this;
        }

        public Criteria andPridLessThan(Integer value) {
            addCriterion("PRID <", value, "prid");
            return (Criteria) this;
        }

        public Criteria andPridLessThanOrEqualTo(Integer value) {
            addCriterion("PRID <=", value, "prid");
            return (Criteria) this;
        }

        public Criteria andPridIn(List<Integer> values) {
            addCriterion("PRID in", values, "prid");
            return (Criteria) this;
        }

        public Criteria andPridNotIn(List<Integer> values) {
            addCriterion("PRID not in", values, "prid");
            return (Criteria) this;
        }

        public Criteria andPridBetween(Integer value1, Integer value2) {
            addCriterion("PRID between", value1, value2, "prid");
            return (Criteria) this;
        }

        public Criteria andPridNotBetween(Integer value1, Integer value2) {
            addCriterion("PRID not between", value1, value2, "prid");
            return (Criteria) this;
        }

        public Criteria andDidIsNull() {
            addCriterion("DID is null");
            return (Criteria) this;
        }

        public Criteria andDidIsNotNull() {
            addCriterion("DID is not null");
            return (Criteria) this;
        }

        public Criteria andDidEqualTo(String value) {
            addCriterion("DID =", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotEqualTo(String value) {
            addCriterion("DID <>", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidGreaterThan(String value) {
            addCriterion("DID >", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidGreaterThanOrEqualTo(String value) {
            addCriterion("DID >=", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidLessThan(String value) {
            addCriterion("DID <", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidLessThanOrEqualTo(String value) {
            addCriterion("DID <=", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidLike(String value) {
            addCriterion("DID like", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotLike(String value) {
            addCriterion("DID not like", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidIn(List<String> values) {
            addCriterion("DID in", values, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotIn(List<String> values) {
            addCriterion("DID not in", values, "did");
            return (Criteria) this;
        }

        public Criteria andDidBetween(String value1, String value2) {
            addCriterion("DID between", value1, value2, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotBetween(String value1, String value2) {
            addCriterion("DID not between", value1, value2, "did");
            return (Criteria) this;
        }

        public Criteria andPmdescIsNull() {
            addCriterion("PMDESC is null");
            return (Criteria) this;
        }

        public Criteria andPmdescIsNotNull() {
            addCriterion("PMDESC is not null");
            return (Criteria) this;
        }

        public Criteria andPmdescEqualTo(String value) {
            addCriterion("PMDESC =", value, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescNotEqualTo(String value) {
            addCriterion("PMDESC <>", value, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescGreaterThan(String value) {
            addCriterion("PMDESC >", value, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescGreaterThanOrEqualTo(String value) {
            addCriterion("PMDESC >=", value, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescLessThan(String value) {
            addCriterion("PMDESC <", value, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescLessThanOrEqualTo(String value) {
            addCriterion("PMDESC <=", value, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescLike(String value) {
            addCriterion("PMDESC like", value, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescNotLike(String value) {
            addCriterion("PMDESC not like", value, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescIn(List<String> values) {
            addCriterion("PMDESC in", values, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescNotIn(List<String> values) {
            addCriterion("PMDESC not in", values, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescBetween(String value1, String value2) {
            addCriterion("PMDESC between", value1, value2, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andPmdescNotBetween(String value1, String value2) {
            addCriterion("PMDESC not between", value1, value2, "pmdesc");
            return (Criteria) this;
        }

        public Criteria andSetdatetimeIsNull() {
            addCriterion("SETDATETIME is null");
            return (Criteria) this;
        }

        public Criteria andSetdatetimeIsNotNull() {
            addCriterion("SETDATETIME is not null");
            return (Criteria) this;
        }

        public Criteria andSetdatetimeEqualTo(Date value) {
            addCriterion("SETDATETIME =", value, "setdatetime");
            return (Criteria) this;
        }

        public Criteria andSetdatetimeNotEqualTo(Date value) {
            addCriterion("SETDATETIME <>", value, "setdatetime");
            return (Criteria) this;
        }

        public Criteria andSetdatetimeGreaterThan(Date value) {
            addCriterion("SETDATETIME >", value, "setdatetime");
            return (Criteria) this;
        }

        public Criteria andSetdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("SETDATETIME >=", value, "setdatetime");
            return (Criteria) this;
        }

        public Criteria andSetdatetimeLessThan(Date value) {
            addCriterion("SETDATETIME <", value, "setdatetime");
            return (Criteria) this;
        }

        public Criteria andSetdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("SETDATETIME <=", value, "setdatetime");
            return (Criteria) this;
        }

        public Criteria andSetdatetimeIn(List<Date> values) {
            addCriterion("SETDATETIME in", values, "setdatetime");
            return (Criteria) this;
        }

        public Criteria andSetdatetimeNotIn(List<Date> values) {
            addCriterion("SETDATETIME not in", values, "setdatetime");
            return (Criteria) this;
        }

        public Criteria andSetdatetimeBetween(Date value1, Date value2) {
            addCriterion("SETDATETIME between", value1, value2, "setdatetime");
            return (Criteria) this;
        }

        public Criteria andSetdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("SETDATETIME not between", value1, value2, "setdatetime");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}